<?xml version="1.0" encoding="utf-8" ?>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
</head>
<body>
    <div>
        <h2>添加:</h2>
        <form action="/user/add" method="post">
            userId: <input type="text" name="userId"> <p style="color: red">userId自增</p>
            用户名: <input type="text" name="userName" >
            密码: <input type="password" name="password">
            手机号: <input type="text" name="phone">
            <button type="submit" >添加</button>
        </form>
    </div>
    <div>
        <h2>删除:</h2>
        <form action="/user/delete" method="post">
            userId: <input type="text" name="userId" >
            <button type="submit" >删除</button>
        </form>
    </div>
    <div>
        <h2>测试事务:</h2>
        <span style="color: red">点击添加之后 先添加数据  然后根据这个添加的id删除该条数据</span>
        <form action="/user/addAndDelete" method="post">
            userId: <input type="text" name="userId">
            用户名: <input type="text" name="userName" >
            密码: <input type="password" name="password">
            手机号: <input type="text" name="phone">
            <button type="submit" >添加</button>
        </form>
    </div>


</body>
</html>